import request from '@/utils/request'

// 查询聊天界面列表
export function listChatpage(query) {
  return request({
    url: '/system/chatpage/list',
    method: 'get',
    params: query
  })
}

// 查询聊天界面详细
export function getChatpage(chatId) {
  return request({
    url: '/system/chatpage/' + chatId,
    method: 'get'
  })
}

// 新增聊天界面
export function addChatpage(data) {
  return request({
    url: '/system/chatpage',
    method: 'post',
    data: data
  })
}

// 修改聊天界面
export function updateChatpage(data) {
  return request({
    url: '/system/chatpage',
    method: 'put',
    data: data
  })
}

// 删除聊天界面
export function delChatpage(chatId) {
  return request({
    url: '/system/chatpage/' + chatId,
    method: 'delete'
  })
}
